Represents a task to send an email, which may have been sent or might be queued to be sent. Also represents an email received, if the recipient profile is set it will show in their internal inbox. Email attachments: TODO - probably just have a list of name and crc, then the attachment can be put in any repository
Properties
Name | Returns | Notes | Example |
---|---|---|---|
id | long | ||
attachments | List | ||
job | BaseEmailJob | Optional reference to the job which caused this to be sent | |
sender | Profile | ||
recipient | BaseEntity | ||
recipientAddress | String | ||
fromAddress | String | ||
replyToAddress | String | ||
subject | String | ||
html | String | ||
text | String | ||
createdDate | Date | ||
sendStatus | String | The send status. Initially null, then set to: - f = failed - c = completed - p = pending/in progress - r = retry | |
sendStatusDate | Date | Required field | |
emailSendAttempts | List | ||
messageSize | int | ||
disposition | String | ||
bccList | String | ||
ccList | String | ||
contentLanguage | String | ||
encoding | String | ||
toList | String | ||
originatingOrg | Organisation | This should contain the organisation which owns the email, ie is responsible for having created the email. This could be due to a email job, trigger, or the email | |
contentStorageType | String | ||
nextAttempt | Date | ||
numAttempts | Integer | Number of attempts at SMTP delivery | |
emailTrigger | EmailTrigger | ||
hidden | Boolean | ||
forceSend | Boolean | If true will be sent even if job is not active. If there is no job has no effect | |
edmConverted | Boolean | ||
messageId | String | ||
reqFrom | String | The IP address the request is from | |
visitedUrl | String | ||
userAgent | String | ||
statusText | String | ||
lastAttempt | EmailSendAttempt |
Ask a question, or offer an answer